package com.zerdoor.service.impl;

import com.zerdoor.dao.ArbitrationDao;
import com.zerdoor.service.ArbitrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 仲裁接口
 * Created by xiaoji on 2014/11/20.
 */
@Service
public class ArbitrationServiceImpl implements ArbitrationService {
    @Autowired
    private ArbitrationDao arbitrationDao;

    @Override
    public List<Map<String, Object>> getArbitrationInfo(Map<String, Object> map) {
        return arbitrationDao.getArbitrationInfo(map);
    }

    @Override
    public List<Map<String, Object>> getItemDiscussByArbitrateId(int arbitrateId) {
        return arbitrationDao.getItemDiscussByArbitrateId(arbitrateId);
    }

    @Override
    public void updateArbitrateResultById(Map<String, Object> map) throws Exception {
        arbitrationDao.updateArbitrateResultById(map);
    }
}
